package com.chance.cc.crawler.development.command.publish.Iqilu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.iqilu.IqiluCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.iqilu.IqiluCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.iqilu.IqiluScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/21 10:18
 * @Description
 *      齐鲁网
 **/
public class IqiluPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = IqiluCrawlerScheduleJob.publishiqiluCrawlerScheduleJobInfo();
        IqiluScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        IqiluCrawlerScript.publishCrawlerNodeScript();
    }
}
